package com.youkeyi.ddy.cloud.common.api.application.business.hr.employee.family;

import com.youkeyi.ddy.cloud.common.api.application.business.hr.employee.family.dto.BusinessEmployeeFamilyListCloudDto;
import com.youkeyi.ddy.cloud.common.api.application.business.hr.employee.family.param.BusinessEmployeeFamilyCreateCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.business.hr.employee.family.param.BusinessEmployeeFamilyDeleteCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.business.hr.employee.family.param.BusinessEmployeeFamilyListCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.business.hr.employee.family.param.BusinessEmployeeFamilyUpdateCloudParam;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * BusinessEmployeeFamilyCloudServiceFallback
 *
 * @Author liuxiawang
 * @Date 1/28/22 4:12 PM
 * @Location shenzhen.china
 */
@Component
@RequestMapping("/business/employee/family/fallback")
public class BusinessEmployeeFamilyCloudServiceFallback implements BusinessEmployeeFamilyCloudService {

    @Override
    public BusinessEmployeeFamilyListCloudDto list(BusinessEmployeeFamilyListCloudParam param) {
        return new BusinessEmployeeFamilyListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent create(BusinessEmployeeFamilyCreateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent update(BusinessEmployeeFamilyUpdateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent delete(BusinessEmployeeFamilyDeleteCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }
}
